//
//  HelpsModel.m
//
//  Created by Keith Lazuka on 7/25/09.
//

#import "NeedHelpsModel.h"
#import "NeedHelpsResultsModel.h"

NeedHelpsResponseFormat CurrentNeedHelpsResponseFormat = NeedHelpsResponseFormatDefault;

id<NeedHelpsModel> CreateNeedHelpsModel(NSString* kind, NSString* method, int limit, NSString* need_id,  NeedHelpsResponseFormat responseFormat)
{
    id<NeedHelpsModel> model = nil;
	model = [[[NeedHelpsResultsModel alloc] initWithResponseFormat:responseFormat 
															  kind:kind 
															method:method 
															 limit:limit
														   need_id:need_id] autorelease];
    return model;
}

id<NeedHelpsModel> CreateNeedHelpsModelWithCurrentSettings(NSString* kind, NSString* method, int limit, NSString* need_id)
{
    return CreateNeedHelpsModel(kind, method, limit, need_id, CurrentNeedHelpsResponseFormat);
}